package org.xkp;

public class ColorPrint {
    public static void print(Object obj){
        System.out.print(obj);
    }
    public static void println(Object obj){
        System.out.println(obj);
    }
    public static  void println(Object obj,FontColor fontColor){
        System.out.println("\033[30;"+fontColor+"m"+obj+"\033[0m");
    }
    public static  void println(Object obj, FontColor printColor, BgColor bgColor){
        System.out.println("\033["+bgColor+";"+printColor+"m"+obj+"\033[0m");
    }
    public static  void blackPrintln(Object obj){
        System.out.println("\033[30;30m"+obj+"\033[0m");
    }
    public static  void redPrintln(Object obj){
        System.out.println("\033[30;31m"+obj+"\033[0m");
    }
    public static  void greenPrintln(Object obj){
        System.out.println("\033[30;32m"+obj+"\033[0m");
    }
    public static  void yellowPrintln(Object obj){
        System.out.println("\033[30;33m"+obj+"\033[0m");
    }
    public static  void bluePrintln(Object obj){
        System.out.println("\033[30;34m"+obj+"\033[0m");
    }
    public static  void purplePrintln(Object obj){
        System.out.println("\033[30;35m"+obj+"\033[0m");
    }
    public static  void darkGreenPrintln(Object obj){
        System.out.println("\033[30;36m"+obj+"\033[0m");
    }
    public static  void whitePrintln(Object obj){
        System.out.println("\033[30;37m"+obj+"\033[0m");
    }

}
